import { Column, Entity, ManyToOne, OneToMany } from 'typeorm';
import { BackgroundBase } from './theme-back.entity';
import { ApiProperty } from '@nestjs/swagger';
import { Theme } from './theme.entity';

@Entity('sys_theme_bar')
export class Bar extends BackgroundBase {
  @Column({
    type: 'varchar',
    default: 'rgba(0,0,0,1)',
    length: 25,
    comment: '底部导航栏字体颜色',
  })
  color: string;
  @Column({
    type: 'varchar',
    length: 25,
    default: 'rgba(0,217,119, 1)',
    comment: '底部导航栏选中的字体颜色',
  })
  checked: string;
  @OneToMany((type) => Theme, (theme) => theme.bar)
  theme: Theme;
}
